import request from "../utils/request";


//提交订单
export const submitOrder = (order) => {
  return request.post(`/user/order/submit`, order)
}

//根据订单编号删除订单
export const deleteOrder = (orderNumber) => {
  return request.get(`/user/order/delete/${orderNumber}`)
}

//订单支付
export const payOrder = (payment) => {
  return request.put(`/user/order/payment/`, payment)
}